package com.health.db.dao.order.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.ServiceInterface;
import com.health.db.dao.order.IRegisterScheduleDao;
import com.health.db.mapper.RegisterScheduleMapper;
import com.health.db.model.RegisterSchedule;
import com.health.db.model.RegisterScheduleExample;

/**
 *挂号信息
 * @author YC
 *
 */
@Component("registerScheduleDao")
public class RegisterScheduleImpl extends ServiceInterface implements
		IRegisterScheduleDao{

	@Autowired
	RegisterScheduleMapper registerScheduleMapper;

	@Override
	public int insert(RegisterSchedule record) {
		// TODO Auto-generated method stub
		return registerScheduleMapper.insert(record);
	}

	@Override
	public int updateByPrimaryKeySelective(RegisterSchedule record) {
		// TODO Auto-generated method stub
		return registerScheduleMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(RegisterSchedule record) {
		// TODO Auto-generated method stub
		return registerScheduleMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<RegisterSchedule> selectByPatientId(Long patientId) {
		// TODO Auto-generated method stub
		return registerScheduleMapper.selectByPatientId(patientId);
	}

	public RegisterScheduleMapper getRegisterScheduleMapper() {
		return registerScheduleMapper;
	}

	public void setRegisterScheduleMapper(
			RegisterScheduleMapper registerScheduleMapper) {
		this.registerScheduleMapper = registerScheduleMapper;
	}

	@Override
	public List<RegisterSchedule> selectByExample(
			RegisterScheduleExample example) {
		// TODO Auto-generated method stub
		return registerScheduleMapper.selectByExample(example);
	}

	@Override
	public RegisterSchedule selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return registerScheduleMapper.selectByPrimaryKey(id);
	}

}
